package main

import "fmt"

func main() {
	//goods := &entity.Goods{
	//	Id: 1,
	//	Name: "wahaha",
	//}
	//fmt.Println(goods)

	fmt.Println("main")

	i := test(3, 2)
	fmt.Println(i)
	//
	print()

}

func print() {
	fmt.Println("rr")
}
func test(a int, b int) int {
	defer func() {
		if err := recover(); err != nil {
			fmt.Println("err:", err)
		}
	}()
	panic("a")

	return a * b
}
